47
How can I prevent grouping by a specified column

oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:DataColumns:[Item,"Freight"]:AllowGroupBy := exGroupByNone

46
How can I sort alphabetically the columns to be displayed in the context menu/floating panel


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotBarVisible := exPivotBarContextSortAscending | exPivotBarAllowResizeColumns | exPivotBarAllowUndoRedo | exPivotBarAutoUpdate | exPivotBarAllowFormatContent | exPivotBarAllowFormatAppearance | exPivotBarAllowValues | exPivotBarShowTotals | exPivotBarAutoFit | exPivotBarSizable | exPivotBarVisible
oDCOCX_Exontrol1:PivotColumnsSortOrder := exPivotColumnsAscending
oDCOCX_Exontrol1:PivotColumnsFloatBarVisible := true

45
How can I prevent dropping data to the control

oDCOCX_Exontrol1:AllowDrop := false

44
Is it possible to allow incremental filtering on drop down filter window too, as I can on the control menus


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:DisplayFilterList := exHideFilterPattern | exFilterListDefault

43
How can I prevent showing the Filter For field in the drop down filter window


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:DisplayFilterList := exHideFilterPattern | exFilterListDefault

42
How can I display the numeric columns only when selecting a new aggregate, like SUM


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0[bold]"
oDCOCX_Exontrol1:PivotColumns := "sum(5)/12,count(5)/12"
oDCOCX_Exontrol1:DataColumns:[Item,"Freight"]:SortType := SortNumeric

41
How can I add a value column


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:PivotColumns := "sum(5)/12"

40
I would like to always have the subtotals in the same row of the "father row". Could that be done


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0[bold],2"
oDCOCX_Exontrol1:PivotColumns := "sum(5)/12,count(5)/12"
oDCOCX_Exontrol1:ShowViewCompact := exViewCompactAggregates | exViewCompact
oDCOCX_Exontrol1:PivotTotals := "/sum,sum(0)"

39
Is there any way, when I change the filter of the column, it broadcast the filter to the other pivot columns that were duplicated


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0,2"
oDCOCX_Exontrol1:ShowBranchRows := exBranchCompact
oDCOCX_Exontrol1:PivotColumns := "sum(5)/12[filter='gBpNxjNh1MhlBoKNhpOZ0hJVNxpOhlMggKBhMZrMJnMoAgI='],count(5)/12[filter='gBpNxjNh1MhlBoKNhpOZ0hJVNxpOhlMggKBhMZrMJnMoAgI=']"
oDCOCX_Exontrol1:ShowViewCompact := exViewCompactKeepSettings | exViewCompact

38
How can I summarize more fields in the same cell


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0,2"
oDCOCX_Exontrol1:ShowBranchRows := exBranchCompact
oDCOCX_Exontrol1:PivotColumns := "sum(5)/12,count(5)/12"
oDCOCX_Exontrol1:ShowViewCompact := exViewCompact

37
How do I programmatically group by rows, in a compact way, no hierarchy lines


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0,2"
oDCOCX_Exontrol1:ShowBranchRows := exBranchCompact

36
How do I programmatically group by rows


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0,1,2"
oDCOCX_Exontrol1:LinesAtRoot := exLinesAtRoot
oDCOCX_Exontrol1:HasLines := exSolidLine

35
How do I programmatically group by columns


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:PivotColumns := "sum(5)/12;6"

34
How can I hide the add new button on the pivot bar


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotBarVisible := exPivotBarHideAddNew | exPivotBarAllowResizeColumns | exPivotBarAllowUndoRedo | exPivotBarAutoUpdate | exPivotBarAllowFormatContent | exPivotBarAllowFormatAppearance | exPivotBarAllowValues | exPivotBarShowTotals | exPivotBarAutoFit | exPivotBarSizable | exPivotBarVisible

33
Is it possible to show the data that generated the result, when double clicking the row


oDCOCX_Exontrol1:BeginUpdate()
oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0[italic]"
oDCOCX_Exontrol1:PivotColumns := "count(0)[underline]"
oDCOCX_Exontrol1:PivotTotals := "count[bold,strikeout]"
oDCOCX_Exontrol1:ShowDataOnDblClick := true
oDCOCX_Exontrol1:EndUpdate()

32
Does your control support subscript or superscript, in HTML captions


oDCOCX_Exontrol1:HeaderHeight := 22
oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:DataColumns:[Item,"ShipCountry"]:Caption := "ShipCountry<font ;7><off 6><sha ;;0>subscript"
oDCOCX_Exontrol1:DataColumns:[Item,"ShipRegion"]:Caption := "ShipRegion<font ;7><off -6><sha ;;0>superscript"
oDCOCX_Exontrol1:Refresh()

31
Is it possible to define a different background color for the pivot bar


oDCOCX_Exontrol1:[Background,exPivotBarBackColor] := RGB(240,240,240)

30
How can I display an icon/image to Content sub-menu


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
oDCOCX_Exontrol1:FormatContents:[Item,"numeric"]:Name := "<img>1</img> Numeric"
oDCOCX_Exontrol1:PivotRows := "5[content=numeric]"

29
How can I change the selection background in the control's context menu


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:[Background,exSelBackColorFilter] := RGB(255,0,0)

28
How can I display the column as date in a long format


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:FormatContents:Add("longdate","longdate(date(value))",nil)
oDCOCX_Exontrol1:PivotRows := "9[content=longdate]"

27
Is it possible to display the column in upper-case


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:FormatContents:Add("upper","upper(value)",nil)
oDCOCX_Exontrol1:PivotRows := "0[content=upper]"

26
How can I programatically bold a column


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0[bold]"

25
How can I display the total with a different foreground color


oDCOCX_Exontrol1:FormatAppearances:Add("fore",nil):ForeColor := RGB(255,0,0)
oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:PivotColumns := "sum(5)"
oDCOCX_Exontrol1:PivotTotals := "sum[fore,bold]"

24
How can I display the total with a different background color/ebn


oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn")
oDCOCX_Exontrol1:FormatAppearances:Add("back",nil):BackColor := 0x1000000
oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:PivotColumns := "sum(5)"
oDCOCX_Exontrol1:PivotTotals := "sum[back]"

23
How can I display the total with a solid background color


oDCOCX_Exontrol1:FormatAppearances:Add("back",nil):BackColor := RGB(240,240,240)
oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:PivotColumns := "sum(5)"
oDCOCX_Exontrol1:PivotTotals := "sum[back]"

22
Is it possible to change the "bold" caption in the control's context menu


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:FormatAppearances:[Item,"bold"]:Name := "Ingrosat"

21
Is it possible to show no Exclude field in the filter window


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:DisplayFilterList := exShowCheckBox | exSortItemsAsc

20
How can I prevent showing the drop down filter button


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:DisplayFilterList := exNoItems

19
How do I get the count of positive values only


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:Aggregates:Add("positive","sum",nil,nil):FormatValue := "value < 0 ? 0 : 1"
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:PivotColumns := "positive(5)"

18
How do I get the sum for negative values only


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:Aggregates:Add("negative","sum",nil,nil):FormatValue := "value < 0 ? value : 0"
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:PivotColumns := "negative(5)"

17
My data stores the data as strings, is it possible to load the data using Import method


oDCOCX_Exontrol1:Import("'string 1';'string 2'#'string 3';'string 4'","str=`'` eor='#' eof=';' hdr=0")

16
Is it possible to load data using different separators


oDCOCX_Exontrol1:Import("item 1;item 2#item 3;item 4","eor='#' eof=';' hdr=0")

15
Is it possible to align a column

local var_Column as IColumn

oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
var_Column := oDCOCX_Exontrol1:DataColumns:[Item,0]
	var_Column:Alignment := RightAlignment
	var_Column:HeaderAlignment := RightAlignment
oDCOCX_Exontrol1:Refresh()

14
How can I change by code the column/rows background color


oDCOCX_Exontrol1:BeginUpdate()
oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn")
oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:FormatAppearances:Add("aka",nil):BackColor := 0x1000000
oDCOCX_Exontrol1:PivotRows := "0[aka]"
oDCOCX_Exontrol1:EndUpdate()

13
How can I apply by code any appearance to my list


oDCOCX_Exontrol1:BeginUpdate()
oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0[italic]"
oDCOCX_Exontrol1:PivotColumns := "count(0)[underline]"
oDCOCX_Exontrol1:PivotTotals := "count[bold,strikeout]"
oDCOCX_Exontrol1:EndUpdate()

12
How can I display an icon instead SUM/Total field

local var_Aggregate as IAggregate

oDCOCX_Exontrol1:BeginUpdate()
oDCOCX_Exontrol1:Images("gBJJgBggAAwAAgACEKAD/hz/EMNh8TIRNGwAjEZAEXjAojJAjIgjIBAEijUlk8plUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9oEEwGBwWDwmFw2Hw9+xUsxGNx2Px+LyUnyGVy2VyeZAGNjIJjITjIb0OjjGi0ukAAVjILzmayWtAGejCvjLh2u3jG23O4ACx1ew11+zEYGsZZsZUe/wkZ4sYZvD4PCy8kjAzjLFjKd5WDjIz6HRvnTwUZGMZX8ZTPb8XU8Hh9cFjALjKVjK5jIv9/w9t78WdjJIoyWr7sKjIWu+/a8Og2QAEajLaIxAzlwhB0DwQuzoECjJWw1DiMQ3D0OgAQMKwsuj8xOy0SrzFEWMdFUExbGMCRfC8ZRswMaLsiofJVHiOo+kKRs2lL2Jsh8cyQo6Ag==")
oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
var_Aggregate := oDCOCX_Exontrol1:Aggregates:[Item,"sum"]
	var_Aggregate:Name := "<img>1</img> Sum"
	var_Aggregate:Caption := "<img>1</img>"
oDCOCX_Exontrol1:PivotColumnsFloatBarVisible := true
oDCOCX_Exontrol1:FormatPivotHeader := "iaggregate ? (caggregate + (iaggregate != 5 ? ' ' : '') + caption) : caption"
oDCOCX_Exontrol1:FormatPivotTotal := "caggregate"
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:PivotColumns := "sum(5)"
oDCOCX_Exontrol1:PivotTotals := "sum,count"
oDCOCX_Exontrol1:EndUpdate()

11
How can I change the caption to be displayed when dragging an aggregate function


oDCOCX_Exontrol1:BeginUpdate()
oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotColumnsFloatBarVisible := true
oDCOCX_Exontrol1:FormatPivotHeader := "(iaggregate ? ('<b>' + upper(caggregate) + '</b> of ' + caption) : caption)"
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:PivotColumns := "sum(5)"
oDCOCX_Exontrol1:PivotTotals := "sum,count"
oDCOCX_Exontrol1:EndUpdate()

10
I am using Import method, just wondering if I can rename the columns

local var_Column as IColumn

oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
var_Column := oDCOCX_Exontrol1:DataColumns:[Item,0]
	var_Column:Caption := "New Caption"
	var_Column:PivotCaption := "New Pivot Caption"
oDCOCX_Exontrol1:Refresh()

9
Does your control support Fit-To-Page Print and Print Preview

local var_Print as IExPrint

oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0,1,2"
oDCOCX_Exontrol1:ExpandAll()
// Generate Source for 'ExPrint 1.0 Control Library(ExPrint.dll)' server from Tools\Automation Server...
var_Print := IExPrint{"Exontrol.Print"}
	var_Print:Options := "FitToPage = On"
	var_Print:PrintExts := oDCOCX_Exontrol1
	var_Print:Preview()

8
How can I print the control

local var_Print as IExPrint

oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0,1,2"
oDCOCX_Exontrol1:ExpandAll()
// Generate Source for 'ExPrint 1.0 Control Library(ExPrint.dll)' server from Tools\Automation Server...
var_Print := IExPrint{"Exontrol.Print"}
	var_Print:PrintExts := oDCOCX_Exontrol1
	var_Print:Preview()

7
How can I hide the pivot bar (hide completly)


oDCOCX_Exontrol1:PivotBarVisible := exPivotBarAllowResizeColumns | exPivotBarAllowUndoRedo | exPivotBarAutoUpdate | exPivotBarAllowFormatContent | exPivotBarAllowFormatAppearance | exPivotBarAllowValues | exPivotBarShowTotals | exPivotBarAutoFit | exPivotBarSizable

6
How can I hide the pivot bar (auto-hide)


oDCOCX_Exontrol1:PivotBarVisible := exPivotBarAllowResizeColumns | exPivotBarAllowUndoRedo | exPivotBarAutoUpdate | exPivotBarAllowFormatContent | exPivotBarAllowFormatAppearance | exPivotBarAllowValues | exPivotBarAutoHide | exPivotBarShowTotals | exPivotBarSizable | exPivotBarVisible

5
How can I count and get the total of a specified column


oDCOCX_Exontrol1:BeginUpdate()
oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotColumnsFloatBarVisible := true
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:PivotColumns := "sum(5)"
oDCOCX_Exontrol1:PivotTotals := "sum,count"
oDCOCX_Exontrol1:EndUpdate()

4
How can I add show the columns once I grouped a column


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0"
oDCOCX_Exontrol1:PivotColumnsFloatBarVisible := true

3
How can I programatically group the columns


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)
oDCOCX_Exontrol1:PivotRows := "0:D"

2
Is it possible to load data from a data source

local rs as _Recordset

// Generate Source for 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' server from Tools\Automation Server...
rs := _Recordset{"ADOR.Recordset"}
	rs:Open("Data","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExPivot\Sample\Access\sample.accdb",3,3,0)
oDCOCX_Exontrol1:DataSource := _Recordset{rs}

1
How can I load data


oDCOCX_Exontrol1:Import("C:\Program Files\Exontrol\ExPivot\Sample\data.txt",nil)